#!/bin/bash

cur_dir=$(cd $(dirname $0)  && pwd)
parent_dir=$(cd $(dirname $0) && cd .. && pwd)

#禁用nouveau

sudo vim /etc/modprobe.d/blacklist-nouveau.conf
#blacklist nouveau
#options nouveau modeset=0
sudo update-initramfs -u
sudo reboot


#添加驱动源
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

ubuntu-drivers devices  #查看推荐驱动



sudo apt-get install nvidia-driver-418-server  #安装NVIDIA-418 自带cuda


sudo reboot



 












